import { createWebHistory , createRouter } from 'vue-router'


const routes = [
    {
      path: '/',
      name: 'index',
      redirect: '/overview',
      component: ()=> import('../views/IndexView.vue'),
      children: [
        {
          path: '/overview',
          component: ()=> import('../views/OverView.vue'),
          meta: { title: '总揽'}
        },
      ],
    },
  ]

const router = createRouter({
  history: createWebHistory (),
  routes,
})

export default router